
#include <iostream>
using std::cout;
using std::endl;

int main()
{
    cout << -30*3 + 21/5 << endl;
    cout << -30*3 * 21/5 << endl;
    cout << 30 / 3 * 21 % 5 << endl;

    cout << 30 / 3 * 21 % 4 << endl;
    cout << -30 / 3 * 21 % 4 << endl;
    cout << 12 / 3 * 4 + 5 *15 + 24 % 4 / 2 << endl;

    return 0;
}
